<template>
  <!-- 显示商品的三方ID -->
  <el-dialog :title="'三方ID列表'" :visible.sync="dialogVisible" :close-on-click-modal="false" append-to-body width="600px">
    <div>
      <el-table border stripe :data="list">
        <el-table-column prop="name" label="渠道名称" width="140" align="left"></el-table-column>
        <el-table-column prop="outid" label="渠道商品ID" align="left"></el-table-column>

      </el-table>
    </div>
  </el-dialog>
</template>

<script>
import goodsListApi from "../../../api/gameConfig/goodsList";
export default {
  name: "",
  components: {},
  data() {
    return {
      dialogVisible: false,
      loading: false,
      list: [],
      id: "",
    };
  },
  components: {},
  created() {},
  methods: {
    open(id) {
      this.id = id;
      this.dialogVisible = true;
      this.getList();
    },
    getList() {
      // console.log("%c Line:36 🍎 res", "color:#2eafb0", 111);
      goodsListApi.getGoodsThirdIds(this.id).then((res) => {
        // console.log("%c Line:36 🍎 res", "color:#2eafb0", res);
        this.list = res.data;
      });
    },
    close() {
      this.dialogVisible = false;
    },
  },
};
</script>
<style scoped lang="css">
.center {
  text-align: center;
}
</style>
